# example6_1.py
# coding=utf-8
import numpy as np
import matplotlib.pyplot as plt

x = np.arange(10)  # 创建数组x
np.random.seed(500)
y = np.random.randint(20, size=(10,))  # 创建数组y
plt.plot(x, y, "r-", lw=5)  # 绘制蓝色(b)折线图
# 设置刻度字体大小
plt.title("Line Chart")
plt.xticks(fontsize=15)
plt.yticks(fontsize=15)
plt.show()  # 显示图形
